import request from './request.js';
 
// 登录
export function getlogin(data) {
	return request({
		url: 'h5/user/login',
		method: 'POST',
		data
	})
}
// 登录
export function registerUser(data) {
	return request({
		url: 'h5/user/register',
		method: 'POST',
		data
	})
}
// 获取验证码
export function getText() {
	return request({
		url: 'captchaImage',
		method: 'get',
	})
}
// 拿到个人信息
export function getUserinfo(data) {
	return request({
		url: 'h5/user/info',
		method: 'post',
		data
	})
}
// 修改个人信息
export function setUserinfo(data) {
	return request({
		url: 'h5/user/edit',
		method: 'post',
		data
	})
}

//退出
export function logout() {
  return request({
    url: 'logout',
    method: 'post'
  })
}




//轮播图
export function getBanner() {
  return request({
    url: 'h5/advertising/list',
    method: 'post'
  })
}
//商品
export function getShoplist(data) {
  return request({
    url: 'h5/product/list',
    method: 'post',
	data
  })
}

//下单
export function goPlay(data) {
  return request({
    url: 'h5/orders/add',
    method: 'post',
	data
  })
}



//车辆
export function carList(data) {
  return request({
    url: 'h5/user/car/list',
    method: 'post',
	data
  })
}
//车辆
export function addCar(data) {
  return request({
    url: 'h5/user/car/add',
    method: 'post',
	data
  })
}
//车辆
export function editCar(data) {
  return request({
    url: 'h5/user/car/edit',
    method: 'post',
	data
  })
}
//车辆
export function removeCar(data) {
  return request({
    url: 'h5/user/car/remove',
    method: 'post',
	data
  })
}


//订单
export function orderList(data) {
  return request({
    url: 'h5/orders/list',
    method: 'post',
	data
  })
}

//订单详情
export function orderListinfo(data) {
  return request({
    url: 'h5/orders/info',
    method: 'post',
	data
  })
}

//订单详情
export function dyorder(data) {
  return request({
    url: 'h5/orders/print',
    method: 'post',
	data
  })
}
